Automattic\Jetpack\Connection\Manager D

Total Complexity 326
Dependencies 35
Dependents 54
Total lines 2,783
Lines of code 1,381
Logical lines of code 700
Comment lines 1,033
Methods 86
Properties 10

Methods 86

Method Rating Maintainability Complexity Lines of code
internal_verify_xml_rpc_signature()
D
29 31 119
register()
B
31 17 120
validate_remote_register_response()
A
41 13 59
authorize()
A
42 12 50
disconnect_user()
A
48 12 32
is_usable_domain()
A
40 9 75
setup_xmlrpc_handlers()
A
46 11 38
jetpack_connection_custom_caps()
A
50 10 31
restore()
A
52 10 26
refresh_blog_token()
A
45 9 39
get_connected_users()
A
52 10 23
disconnect_site()
A
49 8 31
get_authorization_url()
A
40 6 58
get_connection_owner()
S
50 6 30
disconnect_site_wpcom()
S
59 7 14
try_registration()
S
53 6 23
update_connection_owner()
S
48 5 37
configure()
S
45 4 41
get_connected_user_data()
S
53 5 25
delete_all_connection_tokens()
S
54 5 22
authenticate_jetpack()
S
58 5 17
add_stats_to_heartbeat()
S
59 5 14
get_site_id()
S
59 5 14
jetpack_get_options()
S
48 3 37
get_assumed_site_creation_date()
S
49 3 33
connect_user()
S
58 4 16
disconnect_user_force()
S
65 5 9
is_connected()
S
60 4 14
disconnect_all_users_except_primary()
S
61 4 13
verify_xml_rpc_signature()
S
64 4 10
get_connection_owner_id()
S
67 4 7
is_ready_for_cleanup()
S
70 4 5
update_connection_owner_wpcom()
S
59 2 17
xmlrpc_options()
S
57 2 17
__construct()
S
73 3 5
add_connection_status_invalidation_hooks()
S
59 2 15
remove_non_jetpack_xmlrpc_methods()
S
65 3 9
is_site_connection()
S
77 3 3
is_user_connected()
S
68 3 7
add_register_request_param()
S
69 3 6
apply_activation_source_to_args()
S
64 3 10
require_jetpack_authentication()
S
66 2 8
is_missing_connection_owner()
S
69 2 7
is_connection_owner()
S
71 2 6
unlink_user_from_wpcom()
S
67 2 8
clean_nonces()
S
74 2 4
get_max_execution_time()
S
69 2 7
set_min_time_limit()
S
68 2 8
handle_registration()
S
67 2 7
xmlrpc_methods()
S
74 2 4
public_xmlrpc_methods()
S
70 2 6
get_connected_plugins()
S
70 2 7
alternate_xmlrpc()
S
62 1 11
api_url()
S
63 1 11
initialize_rest_api_registration_connector()
S
81 1 3
is_active()
S
80 1 3
get_tokens()
S
81 1 3
is_registered()
S
76 1 4
reset_connection_status()
S
77 1 4
has_connected_admin()
S
79 1 3
has_connected_user()
S
78 1 3
has_connected_owner()
S
80 1 3
is_userless()
S
75 1 4
xmlrpc_api_url()
S
67 1 8
add_nonce()
S
75 1 4
generate_secrets()
S
78 1 3
get_secrets()
S
75 1 4
delete_secrets()
S
75 1 4
remove_connection()
S
76 1 4
reconnect()
S
73 1 5
validate_tokens()
S
75 1 4
verify_secrets()
S
74 1 4
handle_authorization()
S
91 1 2
get_token()
S
79 1 3
sha1_base64()
S
79 1 3
get_access_token()
S
74 1 4
reset_raw_post_data()
S
81 1 3
reset_saved_auth_state()
S
81 1 3
sign_role()
S
79 1 3
set_plugin_instance()
S
77 1 4
get_plugin()
S
82 1 3
disable_plugin()
S
82 1 3
enable_plugin()
S
82 1 3
is_plugin_enabled()
S
82 1 3
refresh_user_token()
S
73 1 5
get_signed_token()
S
75 1 4